package com.blog.config;
import java.io.IOException;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.lambdaworks.redis.RedisClient;

@Configuration
@ComponentScan(basePackages = {"com.blog.redis"})
public class RedisConfig {

    @Bean(name="redisClient")
    public RedisClient redisClient() throws IOException {
        return RedisClient.create("redis://localhost:6379/0");
    }
}
